
#include<reg51.h>
#include<intrins.h>	
#include "MAX6675.h"
#include "led.h"
#include "lcd.h"
#include "usart.h"


void delayms(unsigned int ms)
{
	unsigned char i=100,j;
	for(;ms;ms--)
	{
		while(--i)
		{
			j=10;
			while(--j);
		}
	}
}

void main(void)
{
  MAX6675_Init();
	LED_Init();
	InitUART();
//	InitLcd1602();
	while(1)
	{
		LED_Run();
		max6675_read_temp();
		delayms(200);
	}
			
}